//
//  UIView+SecretAlbums.m
//  SecretAlbums
//
//  Created by BabyFinancial on 15/8/21.
//  Copyright (c) 2015年 BabyFinancial. All rights reserved.
//

#import "UIView+SecretAlbums.h"

@implementation UIView (SecretAlbums)

- (UIImage *)currentScreenImg
{
    UIGraphicsBeginImageContextWithOptions(self.bounds.size, YES, 1.0f);
    [self.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return img;
}

@end
